<?php
$tdatagsp_commercial_details_Chart=array();
	$tdatagsp_commercial_details_Chart[".NumberOfChars"]=80; 
	$tdatagsp_commercial_details_Chart[".ShortName"]="gsp_commercial_details_Chart";
	$tdatagsp_commercial_details_Chart[".OwnerID"]="";
	$tdatagsp_commercial_details_Chart[".OriginalTable"]="gsp_commercial_details";


	
//	field labels
$fieldLabelsgsp_commercial_details_Chart = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsgsp_commercial_details_Chart["English"]=array();
	$fieldToolTipsgsp_commercial_details_Chart["English"]=array();
	$fieldLabelsgsp_commercial_details_Chart["English"]["id"] = "Id";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["bcontact_id"] = "Buyer";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["bcontact_id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["account_id"] = "Account";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["account_id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["ship_mode_id"] = "Ship Mode ";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["ship_mode_id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["ship_from_city"] = "Ship From City";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["ship_from_city"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["ship_from_country"] = "Ship From Country";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["ship_from_country"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["ship_to_country"] = "Ship To Country";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["ship_to_country"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["ship_to_port"] = "Ship To Port";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["ship_to_port"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["ship_date"] = "Ship Date";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["ship_date"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["remarks"] = "Remarks";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["remarks"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["support_documents"] = "Support Documents";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["support_documents"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["origin_requirements"] = "Origin Requirements";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["origin_requirements"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["book_nos"] = "Book Nos";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["book_nos"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["ship_status"] = "Ship Status";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["ship_status"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["status"] = "Status";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["status"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["signatory"] = "Signatory";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["signatory"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["pre_carriage_mode"] = "Pre Carriage Mode";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["pre_carriage_mode"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["pre_carriage_from"] = "Pre Carriage From";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["pre_carriage_from"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["pre_carriage_to"] = "Pre Carriage To";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["pre_carriage_to"] = "";
	$fieldLabelsgsp_commercial_details_Chart["English"]["ref_id"] = "Ref Id";
	$fieldToolTipsgsp_commercial_details_Chart["English"]["ref_id"] = "";
	if (count($fieldToolTipsgsp_commercial_details_Chart["English"])){
		$tdatagsp_commercial_details_Chart[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["bcontact_id"] = "Bcontact Id";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["bcontact_id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["account_id"] = "Account Id";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["account_id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_mode_id"] = "Ship Mode Id";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_mode_id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_from_city"] = "Ship From City";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_from_city"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_from_country"] = "Ship From Country";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_from_country"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_to_country"] = "Ship To Country";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_to_country"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_to_port"] = "Ship To Port";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_to_port"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_date"] = "Ship Date";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_date"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["remarks"] = "Remarks";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["remarks"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["support_documents"] = "Support Documents";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["support_documents"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["origin_requirements"] = "Origin Requirements";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["origin_requirements"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["book_nos"] = "Book Nos";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["book_nos"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_status"] = "Ship Status";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ship_status"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["status"] = "Status";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["status"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["signatory"] = "Signatory";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["signatory"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["pre_carriage_mode"] = "Pre Carriage Mode";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["pre_carriage_mode"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["pre_carriage_from"] = "Pre Carriage From";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["pre_carriage_from"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["pre_carriage_to"] = "Pre Carriage To";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["pre_carriage_to"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ref_id"] = "Ref Id";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"]["ref_id"] = "";
	if (count($fieldToolTipsgsp_commercial_details_Chart["Chinese (Hong Kong S.A.R.)"])){
		$tdatagsp_commercial_details_Chart[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]=array();
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]=array();
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["bcontact_id"] = "Bcontact Id";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["bcontact_id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["account_id"] = "Account Id";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["account_id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_mode_id"] = "Ship Mode Id";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_mode_id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_from_city"] = "Ship From City";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_from_city"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_from_country"] = "Ship From Country";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_from_country"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_to_country"] = "Ship To Country";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_to_country"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_to_port"] = "Ship To Port";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_to_port"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_date"] = "Ship Date";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_date"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["remarks"] = "Remarks";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["remarks"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["support_documents"] = "Support Documents";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["support_documents"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["origin_requirements"] = "Origin Requirements";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["origin_requirements"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["book_nos"] = "Book Nos";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["book_nos"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_status"] = "Ship Status";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ship_status"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["status"] = "Status";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["status"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["signatory"] = "Signatory";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["signatory"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["pre_carriage_mode"] = "Pre Carriage Mode";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["pre_carriage_mode"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["pre_carriage_from"] = "Pre Carriage From";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["pre_carriage_from"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["pre_carriage_to"] = "Pre Carriage To";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["pre_carriage_to"] = "";
	$fieldLabelsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ref_id"] = "Ref Id";
	$fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"]["ref_id"] = "";
	if (count($fieldToolTipsgsp_commercial_details_Chart["Chinese (Taiwan)"])){
		$tdatagsp_commercial_details_Chart[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsgsp_commercial_details_Chart["French"]=array();
	$fieldToolTipsgsp_commercial_details_Chart["French"]=array();
	$fieldLabelsgsp_commercial_details_Chart["French"]["id"] = "Id";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["bcontact_id"] = "Bcontact Id";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["bcontact_id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["account_id"] = "Account Id";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["account_id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["ship_mode_id"] = "Ship Mode Id";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["ship_mode_id"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["ship_from_city"] = "Ship From City";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["ship_from_city"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["ship_from_country"] = "Ship From Country";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["ship_from_country"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["ship_to_country"] = "Ship To Country";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["ship_to_country"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["ship_to_port"] = "Ship To Port";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["ship_to_port"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["ship_date"] = "Ship Date";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["ship_date"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["remarks"] = "Remarks";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["remarks"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["support_documents"] = "Support Documents";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["support_documents"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["origin_requirements"] = "Origin Requirements";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["origin_requirements"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["book_nos"] = "Book Nos";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["book_nos"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["ship_status"] = "Ship Status";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["ship_status"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["status"] = "Status";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["status"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["signatory"] = "Signatory";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["signatory"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["pre_carriage_mode"] = "Pre Carriage Mode";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["pre_carriage_mode"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["pre_carriage_from"] = "Pre Carriage From";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["pre_carriage_from"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["pre_carriage_to"] = "Pre Carriage To";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["pre_carriage_to"] = "";
	$fieldLabelsgsp_commercial_details_Chart["French"]["ref_id"] = "Ref Id";
	$fieldToolTipsgsp_commercial_details_Chart["French"]["ref_id"] = "";
	if (count($fieldToolTipsgsp_commercial_details_Chart["French"])){
		$tdatagsp_commercial_details_Chart[".isUseToolTips"]=true;
	}
}


	
	$tdatagsp_commercial_details_Chart[".NCSearch"]=true;

	
	$tdatagsp_commercial_details_Chart[".ChartRefreshTime"] = 0;

$tdatagsp_commercial_details_Chart[".shortTableName"] = "gsp_commercial_details_Chart";
$tdatagsp_commercial_details_Chart[".nSecOptions"] = 0;
$tdatagsp_commercial_details_Chart[".recsPerRowList"] = 1;	
$tdatagsp_commercial_details_Chart[".tableGroupBy"] = "0";
$tdatagsp_commercial_details_Chart[".mainTableOwnerID"] = "";
$tdatagsp_commercial_details_Chart[".moveNext"] = 1;




$tdatagsp_commercial_details_Chart[".showAddInPopup"] = false;

$tdatagsp_commercial_details_Chart[".showEditInPopup"] = false;

$tdatagsp_commercial_details_Chart[".showViewInPopup"] = false;


$tdatagsp_commercial_details_Chart[".fieldsForRegister"] = array();

$tdatagsp_commercial_details_Chart[".listAjax"] = false;

	$tdatagsp_commercial_details_Chart[".audit"] = false;

	$tdatagsp_commercial_details_Chart[".locking"] = false;
	
$tdatagsp_commercial_details_Chart[".listIcons"] = true;
$tdatagsp_commercial_details_Chart[".edit"] = true;
$tdatagsp_commercial_details_Chart[".inlineEdit"] = true;
$tdatagsp_commercial_details_Chart[".view"] = true;



$tdatagsp_commercial_details_Chart[".delete"] = true;

$tdatagsp_commercial_details_Chart[".showSimpleSearchOptions"] = false;

$tdatagsp_commercial_details_Chart[".showSearchPanel"] = true;


$tdatagsp_commercial_details_Chart[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdatagsp_commercial_details_Chart[".addPageEvents"] = false;

$tdatagsp_commercial_details_Chart[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatagsp_commercial_details_Chart[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdatagsp_commercial_details_Chart[".isUseTimeForSearch"] = false;

$tdatagsp_commercial_details_Chart[".isUseiBox"] = false;



$tdatagsp_commercial_details_Chart[".isUseInlineJs"] = $tdatagsp_commercial_details_Chart[".isUseInlineAdd"] || $tdatagsp_commercial_details_Chart[".isUseInlineEdit"];

$tdatagsp_commercial_details_Chart[".allSearchFields"] = array();

$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "id";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "bcontact_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bcontact_id", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "bcontact_id";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "account_id";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "ship_mode_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_mode_id", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_mode_id";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "ship_from_city";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_from_city", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_from_city";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "ship_from_country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_from_country", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_from_country";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "ship_to_country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_to_country", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_to_country";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "ship_to_port";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_to_port", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_to_port";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "ship_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_date", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_date";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("remarks", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "remarks";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "support_documents";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("support_documents", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "support_documents";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "origin_requirements";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("origin_requirements", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "origin_requirements";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "book_nos";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("book_nos", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "book_nos";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "ship_status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_status", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_status";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("status", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "status";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "signatory";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("signatory", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "signatory";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "pre_carriage_mode";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_mode", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "pre_carriage_mode";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "pre_carriage_from";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_from", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "pre_carriage_from";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "pre_carriage_to";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_to", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "pre_carriage_to";	
}
$tdatagsp_commercial_details_Chart[".globSearchFields"][] = "ref_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ref_id", $tdatagsp_commercial_details_Chart[".allSearchFields"]))
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ref_id";	
}


$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "id";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "bcontact_id";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "account_id";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "ship_mode_id";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "ship_from_city";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "ship_from_country";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "ship_to_country";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "ship_to_port";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "ship_date";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "remarks";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "support_documents";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "origin_requirements";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "book_nos";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "ship_status";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "status";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "signatory";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "pre_carriage_mode";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "pre_carriage_from";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "pre_carriage_to";
$tdatagsp_commercial_details_Chart[".googleLikeFields"][] = "ref_id";



$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "id";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "bcontact_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bcontact_id", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "bcontact_id";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "account_id";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "ship_mode_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_mode_id", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_mode_id";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "ship_from_city";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_from_city", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_from_city";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "ship_from_country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_from_country", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_from_country";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "ship_to_country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_to_country", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_to_country";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "ship_to_port";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_to_port", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_to_port";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "ship_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_date", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_date";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("remarks", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "remarks";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "support_documents";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("support_documents", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "support_documents";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "origin_requirements";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("origin_requirements", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "origin_requirements";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "book_nos";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("book_nos", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "book_nos";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "ship_status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_status", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ship_status";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("status", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "status";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "signatory";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("signatory", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "signatory";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "pre_carriage_mode";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_mode", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "pre_carriage_mode";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "pre_carriage_from";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_from", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "pre_carriage_from";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "pre_carriage_to";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_to", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "pre_carriage_to";	
}
$tdatagsp_commercial_details_Chart[".advSearchFields"][] = "ref_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ref_id", $tdatagsp_commercial_details_Chart[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_Chart[".allSearchFields"][] = "ref_id";	
}

$tdatagsp_commercial_details_Chart[".isTableType"] = "chart";


	

$tdatagsp_commercial_details_Chart[".isDisplayLoading"] = true;

$tdatagsp_commercial_details_Chart[".isResizeColumns"] = false;




$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatagsp_commercial_details_Chart[".strOrderBy"] = $gstrOrderBy;
	
$tdatagsp_commercial_details_Chart[".orderindexes"] = array();

$tdatagsp_commercial_details_Chart[".sqlHead"] = "SELECT id,   bcontact_id,   account_id,   ship_mode_id,   ship_from_city,   ship_from_country,   ship_to_country,   ship_to_port,   ship_date,   remarks,   support_documents,   origin_requirements,   book_nos,   ship_status,   status,   signatory,   pre_carriage_mode,   pre_carriage_from,   pre_carriage_to,   ref_id";
$tdatagsp_commercial_details_Chart[".sqlFrom"] = "FROM gsp_commercial_details";
$tdatagsp_commercial_details_Chart[".sqlWhereExpr"] = "";
$tdatagsp_commercial_details_Chart[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatagsp_commercial_details_Chart[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatagsp_commercial_details_Chart[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatagsp_commercial_details_Chart[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["id"]=$fdata;
//	bcontact_id
	$fdata = array();
	$fdata["strName"] = "bcontact_id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Buyer"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "bcontact_id";
	
		$fdata["FullName"]= "bcontact_id";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["bcontact_id"]=$fdata;
//	account_id
	$fdata = array();
	$fdata["strName"] = "account_id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Account"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "account_id";
	
		$fdata["FullName"]= "account_id";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["account_id"]=$fdata;
//	ship_mode_id
	$fdata = array();
	$fdata["strName"] = "ship_mode_id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship Mode "; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_mode_id";
	
		$fdata["FullName"]= "ship_mode_id";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["ship_mode_id"]=$fdata;
//	ship_from_city
	$fdata = array();
	$fdata["strName"] = "ship_from_city";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship From City"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_from_city";
	
		$fdata["FullName"]= "ship_from_city";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["ship_from_city"]=$fdata;
//	ship_from_country
	$fdata = array();
	$fdata["strName"] = "ship_from_country";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship From Country"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_from_country";
	
		$fdata["FullName"]= "ship_from_country";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["ship_from_country"]=$fdata;
//	ship_to_country
	$fdata = array();
	$fdata["strName"] = "ship_to_country";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship To Country"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_to_country";
	
		$fdata["FullName"]= "ship_to_country";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["ship_to_country"]=$fdata;
//	ship_to_port
	$fdata = array();
	$fdata["strName"] = "ship_to_port";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship To Port"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_to_port";
	
		$fdata["FullName"]= "ship_to_port";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["ship_to_port"]=$fdata;
//	ship_date
	$fdata = array();
	$fdata["strName"] = "ship_date";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_date";
	
		$fdata["FullName"]= "ship_date";
	
		
		
		
		
		
				$fdata["Index"]= 9;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["ship_date"]=$fdata;
//	remarks
	$fdata = array();
	$fdata["strName"] = "remarks";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Remarks"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "remarks";
	
		$fdata["FullName"]= "remarks";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["remarks"]=$fdata;
//	support_documents
	$fdata = array();
	$fdata["strName"] = "support_documents";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Support Documents"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "support_documents";
	
		$fdata["FullName"]= "support_documents";
	
		
		
		
		
		
				$fdata["Index"]= 11;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["support_documents"]=$fdata;
//	origin_requirements
	$fdata = array();
	$fdata["strName"] = "origin_requirements";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Origin Requirements"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "origin_requirements";
	
		$fdata["FullName"]= "origin_requirements";
	
		
		
		
		
		
				$fdata["Index"]= 12;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["origin_requirements"]=$fdata;
//	book_nos
	$fdata = array();
	$fdata["strName"] = "book_nos";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Book Nos"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "book_nos";
	
		$fdata["FullName"]= "book_nos";
	
		
		
		
		
		
				$fdata["Index"]= 13;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["book_nos"]=$fdata;
//	ship_status
	$fdata = array();
	$fdata["strName"] = "ship_status";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship Status"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_status";
	
		$fdata["FullName"]= "ship_status";
	
		
		
		
		
		
				$fdata["Index"]= 14;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["ship_status"]=$fdata;
//	status
	$fdata = array();
	$fdata["strName"] = "status";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Status"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "status";
	
		$fdata["FullName"]= "status";
	
		
		
		
		
		
				$fdata["Index"]= 15;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["status"]=$fdata;
//	signatory
	$fdata = array();
	$fdata["strName"] = "signatory";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Signatory"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "signatory";
	
		$fdata["FullName"]= "signatory";
	
		
		
		
		
		
				$fdata["Index"]= 16;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["signatory"]=$fdata;
//	pre_carriage_mode
	$fdata = array();
	$fdata["strName"] = "pre_carriage_mode";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Pre Carriage Mode"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "pre_carriage_mode";
	
		$fdata["FullName"]= "pre_carriage_mode";
	
		
		
		
		
		
				$fdata["Index"]= 17;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["pre_carriage_mode"]=$fdata;
//	pre_carriage_from
	$fdata = array();
	$fdata["strName"] = "pre_carriage_from";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Pre Carriage From"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "pre_carriage_from";
	
		$fdata["FullName"]= "pre_carriage_from";
	
		
		
		
		
		
				$fdata["Index"]= 18;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["pre_carriage_from"]=$fdata;
//	pre_carriage_to
	$fdata = array();
	$fdata["strName"] = "pre_carriage_to";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Pre Carriage To"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "pre_carriage_to";
	
		$fdata["FullName"]= "pre_carriage_to";
	
		
		
		
		
		
				$fdata["Index"]= 19;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["pre_carriage_to"]=$fdata;
//	ref_id
	$fdata = array();
	$fdata["strName"] = "ref_id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ref Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ref_id";
	
		$fdata["FullName"]= "ref_id";
	
		
		
		
		
		
				$fdata["Index"]= 20;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_Chart["ref_id"]=$fdata;

$tdatagsp_commercial_details_Chart[".chartXml"] = '<chart>
<attr value="tables">
	<attr value="0">gsp_commercial_details Chart</attr>
</attr>
<attr value="chart_type">
	<attr value="type">2d_column</attr>
</attr>

<attr value="parameters">
<attr value="0">
<attr value="name">bcontact_id</attr>
<attr value="currencyFormat">0</attr>
<attr value="decimalFormat">2</attr>
<attr value="customFormat">0</attr>
<attr value="customFormatStr"></attr>
</attr>
<attr value="1">
<attr value="name">remarks</attr>
</attr>
</attr>


<attr value="appearance">
	<attr value="scolor11">FF0000</attr>
	<attr value="scolor12">FF0000</attr>

<attr value="head">'.xmlencode("Chart Title").'</attr>
<attr value="foot">'.xmlencode("Legend Title").'</attr>

<attr value="color51">49563A</attr>
<attr value="color52">49563A</attr>
<attr value="color61">49563A</attr>
<attr value="color62">49563A</attr>
<attr value="color71">C7CDC1</attr>
<attr value="color72">C7CDC1</attr>
<attr value="color81">ECF0E8</attr>
<attr value="color82">ECF0E8</attr>
<attr value="color91">68838B</attr>
<attr value="color92">68838B</attr>
<attr value="color101">48505A</attr>
<attr value="color102">48505A</attr>
<attr value="color111">45595F</attr>
<attr value="color112">45595F</attr>
<attr value="color121"></attr>
<attr value="color122"></attr>
<attr value="color131"></attr>
<attr value="color132"></attr>
<attr value="color141"></attr>
<attr value="color142"></attr>

<attr value="slegend">true</attr>
<attr value="sgrid">false</attr>
<attr value="sname">true</attr>
<attr value="sval">true</attr>
<attr value="sanim">true</attr>
<attr value="sstacked">false</attr>
<attr value="saxes">false</attr>
<attr value="slog">false</attr>
<attr value="aqua">None</attr>
<attr value="cview">Column</attr>
<attr value="is3d">0</attr>
<attr value="isstacked">0</attr>
<attr value="linestyle">0</attr>
<attr value="autoupdate">0</attr>
<attr value="autoupmin">5</attr>
<attr value="cscroll">true</attr>
<attr value="maxbarscroll">10</attr>
</attr>

<attr value="fields">
	<attr value="0">
		<attr value="name">id</attr>
		<attr value="label">Id</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="1">
		<attr value="name">bcontact_id</attr>
		<attr value="label">Buyer</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="2">
		<attr value="name">account_id</attr>
		<attr value="label">Account</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="3">
		<attr value="name">ship_mode_id</attr>
		<attr value="label">Ship Mode </attr>
		<attr value="search"></attr>
	</attr>
	<attr value="4">
		<attr value="name">ship_from_city</attr>
		<attr value="label">Ship From City</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="5">
		<attr value="name">ship_from_country</attr>
		<attr value="label">Ship From Country</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="6">
		<attr value="name">ship_to_country</attr>
		<attr value="label">Ship To Country</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="7">
		<attr value="name">ship_to_port</attr>
		<attr value="label">Ship To Port</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="8">
		<attr value="name">ship_date</attr>
		<attr value="label">Ship Date</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="9">
		<attr value="name">remarks</attr>
		<attr value="label">Remarks</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="10">
		<attr value="name">support_documents</attr>
		<attr value="label">Support Documents</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="11">
		<attr value="name">origin_requirements</attr>
		<attr value="label">Origin Requirements</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="12">
		<attr value="name">book_nos</attr>
		<attr value="label">Book Nos</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="13">
		<attr value="name">ship_status</attr>
		<attr value="label">Ship Status</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="14">
		<attr value="name">status</attr>
		<attr value="label">Status</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="15">
		<attr value="name">signatory</attr>
		<attr value="label">Signatory</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="16">
		<attr value="name">pre_carriage_mode</attr>
		<attr value="label">Pre Carriage Mode</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="17">
		<attr value="name">pre_carriage_from</attr>
		<attr value="label">Pre Carriage From</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="18">
		<attr value="name">pre_carriage_to</attr>
		<attr value="label">Pre Carriage To</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="19">
		<attr value="name">ref_id</attr>
		<attr value="label">Ref Id</attr>
		<attr value="search"></attr>
	</attr>
</attr>


<attr value="settings">
<attr value="name">id</attr>
<attr value="short_table_name">gsp_commercial_details_Chart</attr>
</attr>

</chart>';
	
$tables_data["gsp_commercial_details Chart"]=&$tdatagsp_commercial_details_Chart;
$field_labels["gsp_commercial_details_Chart"] = &$fieldLabelsgsp_commercial_details_Chart;
$fieldToolTips["gsp_commercial_details Chart"] = &$fieldToolTipsgsp_commercial_details_Chart;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["gsp_commercial_details Chart"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["gsp_commercial_details Chart"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "id,   bcontact_id,   account_id,   ship_mode_id,   ship_from_city,   ship_from_country,   ship_to_country,   ship_to_port,   ship_date,   remarks,   support_documents,   origin_requirements,   book_nos,   ship_status,   status,   signatory,   pre_carriage_mode,   pre_carriage_from,   pre_carriage_to,   ref_id";
$proto0["m_strFrom"] = "FROM gsp_commercial_details";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
$proto0["m_strTail"] = "";
$proto1=array();
$proto1["m_sql"] = "";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto1["m_column"]=$obj;
$proto1["m_contained"] = array();
$proto1["m_strCase"] = "";
$proto1["m_havingmode"] = "0";
$proto1["m_inBrackets"] = "0";
$proto1["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto1);

$proto0["m_where"] = $obj;
$proto3=array();
$proto3["m_sql"] = "";
$proto3["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto3["m_column"]=$obj;
$proto3["m_contained"] = array();
$proto3["m_strCase"] = "";
$proto3["m_havingmode"] = "0";
$proto3["m_inBrackets"] = "0";
$proto3["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto3);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto5=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "gsp_commercial_details"
));

$proto5["m_expr"]=$obj;
$proto5["m_alias"] = "";
$obj = new SQLFieldListItem($proto5);

$proto0["m_fieldlist"][]=$obj;
						$proto7=array();
			$obj = new SQLField(array(
	"m_strName" => "bcontact_id",
	"m_strTable" => "gsp_commercial_details"
));

$proto7["m_expr"]=$obj;
$proto7["m_alias"] = "";
$obj = new SQLFieldListItem($proto7);

$proto0["m_fieldlist"][]=$obj;
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "account_id",
	"m_strTable" => "gsp_commercial_details"
));

$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "";
$obj = new SQLFieldListItem($proto9);

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_mode_id",
	"m_strTable" => "gsp_commercial_details"
));

$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "";
$obj = new SQLFieldListItem($proto11);

$proto0["m_fieldlist"][]=$obj;
						$proto13=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_from_city",
	"m_strTable" => "gsp_commercial_details"
));

$proto13["m_expr"]=$obj;
$proto13["m_alias"] = "";
$obj = new SQLFieldListItem($proto13);

$proto0["m_fieldlist"][]=$obj;
						$proto15=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_from_country",
	"m_strTable" => "gsp_commercial_details"
));

$proto15["m_expr"]=$obj;
$proto15["m_alias"] = "";
$obj = new SQLFieldListItem($proto15);

$proto0["m_fieldlist"][]=$obj;
						$proto17=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_to_country",
	"m_strTable" => "gsp_commercial_details"
));

$proto17["m_expr"]=$obj;
$proto17["m_alias"] = "";
$obj = new SQLFieldListItem($proto17);

$proto0["m_fieldlist"][]=$obj;
						$proto19=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_to_port",
	"m_strTable" => "gsp_commercial_details"
));

$proto19["m_expr"]=$obj;
$proto19["m_alias"] = "";
$obj = new SQLFieldListItem($proto19);

$proto0["m_fieldlist"][]=$obj;
						$proto21=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_date",
	"m_strTable" => "gsp_commercial_details"
));

$proto21["m_expr"]=$obj;
$proto21["m_alias"] = "";
$obj = new SQLFieldListItem($proto21);

$proto0["m_fieldlist"][]=$obj;
						$proto23=array();
			$obj = new SQLField(array(
	"m_strName" => "remarks",
	"m_strTable" => "gsp_commercial_details"
));

$proto23["m_expr"]=$obj;
$proto23["m_alias"] = "";
$obj = new SQLFieldListItem($proto23);

$proto0["m_fieldlist"][]=$obj;
						$proto25=array();
			$obj = new SQLField(array(
	"m_strName" => "support_documents",
	"m_strTable" => "gsp_commercial_details"
));

$proto25["m_expr"]=$obj;
$proto25["m_alias"] = "";
$obj = new SQLFieldListItem($proto25);

$proto0["m_fieldlist"][]=$obj;
						$proto27=array();
			$obj = new SQLField(array(
	"m_strName" => "origin_requirements",
	"m_strTable" => "gsp_commercial_details"
));

$proto27["m_expr"]=$obj;
$proto27["m_alias"] = "";
$obj = new SQLFieldListItem($proto27);

$proto0["m_fieldlist"][]=$obj;
						$proto29=array();
			$obj = new SQLField(array(
	"m_strName" => "book_nos",
	"m_strTable" => "gsp_commercial_details"
));

$proto29["m_expr"]=$obj;
$proto29["m_alias"] = "";
$obj = new SQLFieldListItem($proto29);

$proto0["m_fieldlist"][]=$obj;
						$proto31=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_status",
	"m_strTable" => "gsp_commercial_details"
));

$proto31["m_expr"]=$obj;
$proto31["m_alias"] = "";
$obj = new SQLFieldListItem($proto31);

$proto0["m_fieldlist"][]=$obj;
						$proto33=array();
			$obj = new SQLField(array(
	"m_strName" => "status",
	"m_strTable" => "gsp_commercial_details"
));

$proto33["m_expr"]=$obj;
$proto33["m_alias"] = "";
$obj = new SQLFieldListItem($proto33);

$proto0["m_fieldlist"][]=$obj;
						$proto35=array();
			$obj = new SQLField(array(
	"m_strName" => "signatory",
	"m_strTable" => "gsp_commercial_details"
));

$proto35["m_expr"]=$obj;
$proto35["m_alias"] = "";
$obj = new SQLFieldListItem($proto35);

$proto0["m_fieldlist"][]=$obj;
						$proto37=array();
			$obj = new SQLField(array(
	"m_strName" => "pre_carriage_mode",
	"m_strTable" => "gsp_commercial_details"
));

$proto37["m_expr"]=$obj;
$proto37["m_alias"] = "";
$obj = new SQLFieldListItem($proto37);

$proto0["m_fieldlist"][]=$obj;
						$proto39=array();
			$obj = new SQLField(array(
	"m_strName" => "pre_carriage_from",
	"m_strTable" => "gsp_commercial_details"
));

$proto39["m_expr"]=$obj;
$proto39["m_alias"] = "";
$obj = new SQLFieldListItem($proto39);

$proto0["m_fieldlist"][]=$obj;
						$proto41=array();
			$obj = new SQLField(array(
	"m_strName" => "pre_carriage_to",
	"m_strTable" => "gsp_commercial_details"
));

$proto41["m_expr"]=$obj;
$proto41["m_alias"] = "";
$obj = new SQLFieldListItem($proto41);

$proto0["m_fieldlist"][]=$obj;
						$proto43=array();
			$obj = new SQLField(array(
	"m_strName" => "ref_id",
	"m_strTable" => "gsp_commercial_details"
));

$proto43["m_expr"]=$obj;
$proto43["m_alias"] = "";
$obj = new SQLFieldListItem($proto43);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto45=array();
$proto45["m_link"] = "SQLL_MAIN";
			$proto46=array();
$proto46["m_strName"] = "gsp_commercial_details";
$proto46["m_columns"] = array();
$proto46["m_columns"][] = "id";
$proto46["m_columns"][] = "bcontact_id";
$proto46["m_columns"][] = "account_id";
$proto46["m_columns"][] = "ship_mode_id";
$proto46["m_columns"][] = "ship_from_city";
$proto46["m_columns"][] = "ship_from_country";
$proto46["m_columns"][] = "ship_to_country";
$proto46["m_columns"][] = "ship_to_port";
$proto46["m_columns"][] = "ship_date";
$proto46["m_columns"][] = "remarks";
$proto46["m_columns"][] = "support_documents";
$proto46["m_columns"][] = "origin_requirements";
$proto46["m_columns"][] = "book_nos";
$proto46["m_columns"][] = "ship_status";
$proto46["m_columns"][] = "status";
$proto46["m_columns"][] = "signatory";
$proto46["m_columns"][] = "pre_carriage_mode";
$proto46["m_columns"][] = "pre_carriage_from";
$proto46["m_columns"][] = "pre_carriage_to";
$proto46["m_columns"][] = "ref_id";
$obj = new SQLTable($proto46);

$proto45["m_table"] = $obj;
$proto45["m_alias"] = "";
$proto47=array();
$proto47["m_sql"] = "";
$proto47["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto47["m_column"]=$obj;
$proto47["m_contained"] = array();
$proto47["m_strCase"] = "";
$proto47["m_havingmode"] = "0";
$proto47["m_inBrackets"] = "0";
$proto47["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto47);

$proto45["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto45);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$obj = new SQLQuery($proto0);

$queryData_gsp_commercial_details_Chart = $obj;
$tdatagsp_commercial_details_Chart[".sqlquery"] = $queryData_gsp_commercial_details_Chart;

$tableEvents["gsp_commercial_details Chart"] = new eventsBase;

?>
